#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    m_IPC = new InterprocessCommunication(IPC_RECV_PORT, IPC_SEND_PORT, "127.0.0.1", this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    m_IPC->sendCommand(IPC_CMD_TAKEOVER_STATUS, 1);
}

